<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<h3>登录</h3>
<h3 th:text="${msg}" style="color: red"></h3>

<!--<form method="post" action="login">-->
<form method="post" action="login">
    用户名:<input type="text" name="name"/><br/>
    密码：<input type="password" name="password"/><br/>
    <input type="submit" value="登录"/>
</form>

<h1>------------------------loginType--------------------</h1>
<form action="${pageContext.request.contextPath }/user/login"
      method="POST">
    邮箱：<input type="text" name="email">
    <br><br>
    密码：<input type="password" name="password">
    <br><br>
    <input type="submit" value="用户登录">
</form>
<br>
<br>
<form action="${pageContext.request.contextPath }/admin/login"
      method="POST">
    用户名：<input type="text" name="username">
    <br><br>
    密　码：<input type="password" name="password">
    <br><br>
    <input type="submit" value="管理员登录">
</form>

</body>
</html>